import 'package:json_annotation/json_annotation.dart';
import 'package:short_drama/models/home_tab_model.dart';

part 'home_tabs_model.g.dart';

@JsonSerializable()
class HomeTabsModel {
  final num id;
  final String name;
  final String key;
  final List<HomeTabModel> dictionary;

  const HomeTabsModel(this.id, this.name, this.key, this.dictionary);

  factory HomeTabsModel.fromJson(Map<String, dynamic> json) =>
      _$HomeTabsModelFromJson(json);

  Map<String, dynamic> toJson() => _$HomeTabsModelToJson(this);
}
